package com.wodsy.phoenix.dataobject.cms.model;

// Generated 2015-4-27 10:15:56 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

/**
 * IdxHotGoodsRecommended generated by hbm2java
 */
@Entity
@Table(name = "tb_idx_hot_goods_recommended", catalog = "cms")
public class IdxHotGoodsRecommended extends PhoenixObject implements PhoenixRequest,PhoenixResponse  {

	private Integer id;
	private int goodsId;
	private String goodsName;
	private String goodsPic;
	private Integer goodsPrice;
	private int weight;
	private Integer status;
	private Date onlineTime;
	private Date offlineTime;
	private Date createTime;
	private Date updateTime;

	public IdxHotGoodsRecommended() {
	}

	public IdxHotGoodsRecommended(int goodsId, int weight, Integer status,
			Date onlineTime, Date offlineTime, Date createTime) {
		this.goodsId = goodsId;
		this.weight = weight;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
	}

	public IdxHotGoodsRecommended(int goodsId, String goodsName,
			String goodsPic, int weight, Integer status, Date onlineTime,
			Date offlineTime, Date createTime, Date updateTime) {
		this.goodsId = goodsId;
		this.goodsName = goodsName;
		this.goodsPic = goodsPic;
		this.weight = weight;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "goods_id", nullable = false)
	public int getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "goods_name", length = 50)
	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Column(name = "goods_pic", length = 200)
	public String getGoodsPic() {
		return this.goodsPic;
	}

	public void setGoodsPic(String goodsPic) {
		this.goodsPic = goodsPic;
	}
	
	@Column(name = "goods_price")
	public Integer getGoodsPrice() {
		return this.goodsPrice;
	}

	public void setGoodsPrice(Integer goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	@Column(name = "weight", nullable = false)
	public int getWeight() {
		return this.weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "online_time", nullable = false, length = 19)
	public Date getOnlineTime() {
		return this.onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "offline_time", nullable = false, length = 19)
	public Date getOfflineTime() {
		return this.offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time",updatable=false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "IdxHotGoodsRecommended [id=" + id + ", goodsId=" + goodsId
				+ ", goodsName=" + goodsName + ", goodsPic=" + goodsPic
				+ ", weight=" + weight + ", status=" + status + ", onlineTime="
				+ onlineTime + ", offlineTime=" + offlineTime + ", createTime="
				+ createTime + ", updateTime=" + updateTime + "]";
	}

	
}
